void substr(char* src, int begin, int cnt, char* trg)
{
    strcpy(trg, src + begin);
    trg[cnt] = '\0';
}